package com.wingscode.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wingscode.modules.sys.entity.InquiryEntity;

import java.math.BigDecimal;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 招标
 *
 * @author yan
 */
@Mapper
public interface InquiryDao extends BaseMapper<InquiryEntity> {
    IPage<InquiryEntity> marketList(IPage<InquiryEntity> page, @Param("classify") Integer classify, @Param("regionList") String[] regionList, @Param("type") Integer type,
            @Param("isQual") Integer isQual, @Param("state") Integer state, @Param("content") String content, @Param("platformSearch") Integer platformSearch,
            @Param("sendTypeList") String[] sendTypeList);

    InquiryEntity getInfo(@Param("id") Integer id);

    IPage<InquiryEntity> mainList(IPage<InquiryEntity> page, @Param("regionList") String[] regionList, @Param("type") Integer type, @Param("isQual") Integer isQual,
            @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("price") BigDecimal price,
            @Param("content") String content);

    IPage<InquiryEntity> myList(IPage<InquiryEntity> page, @Param("loginUserId") Integer loginUserId, @Param("agentId") Integer agentId,
            @Param("state") Integer state, @Param("classify") Integer classify);

    IPage<InquiryEntity> myOfferPriceList(IPage<InquiryEntity> page, @Param("loginUserId") Integer loginUserId, @Param("state") Integer state);

    IPage<InquiryEntity> list(IPage<InquiryEntity> page, @Param("type") Integer type, @Param("state") Integer state, @Param("classify") Integer classify,
            @Param("username") String username);

    List<InquiryEntity> invalidList();
}
